package com.ruoyi.jiaopei.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.annotation.DataColumn;
import com.ruoyi.common.annotation.DataPermission;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.jiaopei.domain.TbClass;
import com.ruoyi.jiaopei.domain.bo.TbClassBo;
import com.ruoyi.jiaopei.domain.vo.TbClassVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

/**
 * 班级Mapper接口
 *
 * @author macy
 * @date 2024-04-03
 */
public interface TbClassMapper extends BaseMapperPlus<TbClassMapper, TbClass, TbClassVo> {


    @DataPermission({
        @DataColumn(key = "userName", value = "t.teacher_id")
    })
    Page<TbClassVo> selectPageList(@Param("page") Page<TbClassVo> page,@Param(Constants.WRAPPER) Wrapper<TbClass> queryWrapper);



}
